package com.csjung.games.gamenori.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootLayoutPanel;

import com.csjung.games.gamenori.client.ioc.InjectorWrapper;
import com.csjung.games.gamenori.client.ioc.MainInjector;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Gamenori implements EntryPoint {
  
  final private InjectorWrapper injectorWrapper = GWT.create(InjectorWrapper.class);
  
  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
    MainInjector injector = injectorWrapper.getInjector();
    MainApp app = injector.getMainApp();
    app.run(RootLayoutPanel.get());    
  }
}
